/*
 *  operation.c
 *  Ueb6
 *
 *  Created by Jon Barg on 19.11.09.
 *  Copyright 2009 __MyCompanyName__. All rights reserved.
 *
 */

int operation(char* minChar, char* maxChar, char string[]){

	int length=0;
	int a;
	
	while (string[length]!=0) {
		length++;
	}
	length--;//wegen der 0 im String
	
	*minChar=string[0];
	*maxChar=string[0];
	
	for (a=0; a<length; a++) {
		
		if (*maxChar<string[a]) {
			
			*maxChar=string[a];
		}
		if (*minChar>=string[a]) {	
			
			*minChar=string[a];
			
		}
	}	
	return length;
}